import 'package:get/get.dart';
import 'package:get/get_rx/get_rx.dart';
import 'package:get/get_rx/src/rx_types/rx_types.dart';
import 'package:inmotion_pro/pages/models/http_response/ride_record_response_model.dart';
import 'package:inmotion_pro/pages/others/common_enum/cycling_record_filter_type.dart';

import '../../../service/realtime_data_server/vehicle_realtime_data/vehicle_statistics_once.dart';

class CyclingRecordDetailState {
  // 骑行记录列表
  RxList<VehicleStatisticsOnce> cyclingRecords = <VehicleStatisticsOnce>[].obs;

  // 当前筛选类型
  Rx<CyclingRecordFilterType> currentFilterType =
      CyclingRecordFilterType.all.obs;

  // 可选年份列表
  RxInt currentYear = 0.obs;

  // 可选月份列表
  RxInt currentMonth = 0.obs;

  // 统计信息
  Rx<RideRecordStats> rideRecordStats = RideRecordStats().obs;

  // 是否还有更多数据
  RxBool hasMore = true.obs;
}
